package cn.haoxsf.app.system.model.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @program: app
 * @description: 用户登陆参数
 * @author: Ele qvbanfm@qq.com
 * @create: 2020-01-06 15:53
 **/
@Data
public class LoginParam {


    @ApiModelProperty(value = "用户名",required = true)
    @Pattern(regexp = "^[a-zA-Z]\\w{5,17}",message = "用户名错误：以字母开头，长度在6~18之间，只能包含字符、数字和下划线")
    private String username;

    @Pattern(regexp = "^[a-zA-Z]\\w{5,17}",message = "密码错误：以字母开头，长度在6~18之间，只能包含字符、数字和下划线")
    @ApiModelProperty(value = "密码",required = true)
    private String password;
}
